﻿using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 部门创建模型
    /// </summary>
    public class DepartmentCreateRequestDto
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        [Display(Name = "部门名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        [Display(Name = "联系地址")]
        public string Remark { get; set; }

        /// <summary>
        /// 上级部门Id
        /// </summary>
        [Display(Name = "上级部门")]
        public string ParentId { get; set; }
    }
}
